/**
 * QuartzTestJob.java - 2012-3-14
 *
 * Licensed Property to China UnionPay Co., Ltd.
 * 
 * (C) Copyright of China UnionPay Co., Ltd. 2010
 *     All Rights Reserved.
 *
 * Project Info: China UnionPay Internet Acquiring Project
 * 
 * Modification History:
 * =============================================================================
 *   Author         Date          Description
 *   ------------ ---------- ---------------------------------------------------
 *        
 * =============================================================================
 */
package com.lijin.batchsys.schedule;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * Description: Quartz测试任务类
 *
 * (C) Copyright of China UnionPay Co., Ltd. 2010.
 *
 */
public class QuartzTestJob implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		JobDataMap jdm = context.getJobDetail().getJobDataMap();
		if (!jdm.isEmpty()) {
			System.out.println(jdm.get("type") + "---------------进来了------------------");
//			System.out.println("当前线程---------->" + this);
//			System.out.println(jdm);
//			System.out.println(jdm.get("date"));
			
			try {
				Thread.sleep(5000);
//				System.out.println("当前时间---------->" + new Date());
//				System.out.println("当前线程---------->" + this);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			System.out.println(jdm.get("type") + "---------------出去了------------------");
		}
	}

}
